package com.woniu.his.mms.service;

import com.woniu.his.mms.infra.model.MedicinePrescriptionRecord;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.his.mms.service.dto.MedicinePrescriptionDto;
import com.woniu.his.mms.service.param.CreateMedicineServiceParam;

import java.util.List;

/**
 * <p>
 * 成药处方记录表 服务类
 * </p>
 *
 * @author ZJH
 * @since 2022-11-28
 */
public interface MedicinePrescriptionRecordService extends IService<MedicinePrescriptionRecord> {

    Long applyMedicine(CreateMedicineServiceParam param1);

    boolean invalidMedicine(List<Long> ids);

    /**
     * 根据账单id查询成药处方
     * @param BillId
     * @return
     */
    MedicinePrescriptionDto queryMedicinePrescriptionByBillId(Long BillId);

    /**
     * 支付成功修改状态
     * @param billId
     * @return
     */
    Boolean paySuccess(Long billId);
}
